using System;

namespace SMS.SMPPClient.PDU.Incoming
{
    /// <summary>
    /// Defines the unbind response from the SMSC.
    /// </summary>

    public class SMPPUnbindResponse : SMPPResponse
    {
        /// <summary>
        /// Creates an unbind response PDU.
        /// </summary>
        /// <param name="response">The byte response from the
        /// SMSC.</param>
        public SMPPUnbindResponse(byte[] response)
            : base(response)
        {
            DecodeSMSCResponse();
        }

        /// <summary>
        /// Decodes the unbind response from the SMSC.  Since an unbind response contains
        /// essentially nothing other than the header, this method does nothing special.
        /// It will grab any TLVs that are in the PDU, however.
        /// </summary>
        protected override void DecodeSMSCResponse()
        {
            //fill the TLV table if applicable
            tlvTable.TranslateTLVDataIntoTable(ResponseAfterHeader);
        }
    }
}
